package com.zyn.java.client;

import com.zyn.java.entity.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author zhangyanan
 * @description
 * @date 2017/11/1 0001 20:25
 */
@FeignClient("Client2")
public interface UserTest {
    @GetMapping("/user")
     User selectUser(@RequestParam(value = "username") String username, @RequestParam(value = "password") String password);

    @PutMapping("/user")
    String insertUser(@RequestBody User user);

    @PostMapping("/user")
    String updateUser(@RequestBody User user);

    @DeleteMapping("/user/{id}")
    String deleteUser(@PathVariable("id") Long id);


}
